import { Module, forwardRef } from "@nestjs/common";
import { UserModule } from "src/user/user.module";
import { DeptService } from "./dept.service";
import { TypeOrmModule } from "@nestjs/typeorm";
import { Dept } from "./dept.entity";
import { DeptController } from "./dept.controller";



@Module({
    imports: [
        TypeOrmModule.forFeature([Dept]),
        forwardRef(() => UserModule)
    ],
    controllers: [DeptController],
    providers: [DeptService],
    exports: [DeptService]
})
export class DeptModule { }